# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-photos
pkgver=42.0
pkgrel=0
pkgdesc="Access, organize and share your photos on GNOME"
url="https://wiki.gnome.org/Apps/Photos"
# s390x and riscv64 blocked by librsvg -> gegl
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
depends="gsettings-desktop-schemas tracker-miners"
makedepends="meson babl-dev cairo-dev gtk+3.0-dev gexiv2-dev glib-dev
	gnome-online-accounts grilo-dev gsettings-desktop-schemas-dev
	libdazzle-dev libgdata-dev libjpeg-turbo-dev libpng-dev tracker-dev
	dbus-dev gegl-dev geocode-glib-dev gfbgraph-dev itstool libhandy1-dev"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-photos/${pkgver%.*}/gnome-photos-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Ddogtail=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
cddaa84596a180fb2a4d70db65c6e625e3d94bccbdc7bcc83ed577b9306210a2879e3d40f8823a9e097f78caa6fccc53404194e7dce0629db3ebda1aa428b714  gnome-photos-42.0.tar.xz
"
